/**
 * OpenGeoDa TM, Copyright (C) 2011 by Luc Anselin - all rights reserved
 *
 * This file is part of OpenGeoDa.
 * 
 * OpenGeoDa is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * OpenGeoDa is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __GEODA_CENTER_CC_VARIABLE_DLG_H__
#define __GEODA_CENTER_CC_VARIABLE_DLG_H__

#include <wx/dialog.h>
#include <wx/listbox.h>
#include <wx/textctrl.h>

class DbfGridTableBase;

class CCVariableDlg: public wxDialog
{    
public:
    CCVariableDlg(DbfGridTableBase* grid_base, wxWindow* parent,
				  wxWindowID id = -1,
				  const wxString& caption="Conditional Plot Variable Settings",
				  const wxPoint& pos = wxDefaultPosition,
				  const wxSize& size = wxDefaultSize,
				  long style = wxCAPTION|wxSYSTEM_MENU );
    bool Create(wxWindow* parent, wxWindowID id = -1,
				const wxString& caption = "Conditional Plot Variable Settings",
				const wxPoint& pos = wxDefaultPosition,
				const wxSize& size = wxDefaultSize,
				long style = wxCAPTION|wxSYSTEM_MENU );
    void CreateControls();
    void OnCMoveout1Click( wxCommandEvent& event );
    void OnCMoveout2Click( wxCommandEvent& event );
    void OnCMoveout3Click( wxCommandEvent& event );
    void OnCMoveout4Click( wxCommandEvent& event );
    void OnOkClick( wxCommandEvent& event );
    void OnCancelClick( wxCommandEvent& event );

    wxListBox* m_list;
	
    wxTextCtrl* m_x;
    wxTextCtrl* m_y;
    wxTextCtrl* m_v1;
    wxTextCtrl* m_v2;
	
	wxString cc1;
	wxString cc2;
	wxString cc3;
	wxString cc4;
	
	DECLARE_EVENT_TABLE()
};

#endif
